<?php
require_once ('../../public/config/config.php');
require_once ('../class/Borrow.class.php');

// echo $_POST['bookid'];
// echo $_SESSION['userID'];
$borrow = new Borrow();
$borrow->ToBorrow($_SESSION['userID'], $_POST['bookid']);
return true;
?>